package cn.com.enersun.iec61850.integratedDataProcessing;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * Created by YYC on 2017/4/24.
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class EasyTree {
    @JsonProperty("text")
    private String text;
    @JsonProperty("tooltip")
    private String tooltip;
    @JsonProperty("uiIcon")
    private String uiIcon;
    @JsonProperty("id")
    private String id;
    @JsonProperty("disType")
    private String disType;
    @JsonProperty("children")
    private List<EasyTree> children;

    public EasyTree(String text, String tooltip, String uiIcon, String id, String disType, List<EasyTree> children) {
        this.text = text;
        this.tooltip = tooltip;
        this.uiIcon = uiIcon;
        this.id = id;
        this.disType = disType;
        this.children = children;
    }

    public EasyTree() {

    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getTooltip() {
        return tooltip;
    }

    public void setTooltip(String tooltip) {
        this.tooltip = tooltip;
    }

    public String getUiIcon() {
        return uiIcon;
    }

    public void setUiIcon(String uiIcon) {
        this.uiIcon = uiIcon;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDisType() {
        return disType;
    }

    public void setDisType(String disType) {
        this.disType = disType;
    }

    public List<EasyTree> getChildren() {
        return children;
    }

    public void setChildren(List<EasyTree> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "EasyTree{" +
                "text='" + text + '\'' +
                ", tooltip='" + tooltip + '\'' +
                ", uiIcon='" + uiIcon + '\'' +
                ", id='" + id + '\'' +
                ", disType='" + disType + '\'' +
                ", children=" + children +
                '}';
    }
}
